package com.kgcx.organization.domain;

import com.kgcx.dbutils.annotation.SelectLike;
import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_organization_company")
@ApiModel(value = "人力公司")
public class Company extends BaseDomain{

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true, example = "空港出行")
    @SelectLike
    private String serviceName;

    /**
     * 营业执照图片编码
     */
    @ApiModelProperty(value = "营业执照图片id", required = true, example = "649c38917ae84d5a9ab0ec97a4649328")
    private String licenseImg;

    /**
     * 公司编码,服务机构代码
     */
    @ApiModelProperty(value = "公司编码,服务机构代码", required = true, example = "12345678765")
    @SelectLike
    private String serviceNo;

    /**
     * 城市行政区域编码
     */
    @ApiModelProperty(value = "城市行政区域编码", required = true, example = "4301")
    private Long cityId;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人", required = true, example = "张老三")
    private String responsibleName;

    /**
     * 负责人电话
     */
    @ApiModelProperty(value = "负责人电话", required = true, example = "13989888787")
    private String responsiblePhone;

    /**
     * 管理人
     */
    @ApiModelProperty(value = "管理人", required = true, example = "牛老三")
    @SelectLike
    private String managerName;

    /**
     * 管理人电话
     */
    @ApiModelProperty(value = "管理人人电话", required = true, example = "13989888787")
    @SelectLike
    private String managerPhone;

    /**
     * 公司地址所在城市行政区域编码
     */
    @ApiModelProperty(value = "公司地址所在城市行政区域编码", required = true, example = "4301")
    private Integer companyCityId;

    /**
     * 公司地址
     */
    @ApiModelProperty(value = "公司地址", required = true, example = "岳麓区中电软件园")
    private String detailAddress;

    /**
     * 紧急联系电话
     */
    @ApiModelProperty(value = "紧急联系电话", required = true, example = "13878776545")
    private String contactPhone;

    /**
     * 行政文书送达地址
     */
    @ApiModelProperty(value = "行政文书送达地址", required = true, example = "湖南省长沙市岳麓区中电软件园")
    private String mailAddress;

    /**
     * 服务机构设立日期
     */
    @ApiModelProperty(value = "服务机构设立日期", required = true, example = "1511248354000")
    private Timestamp createDate;

    /**
     * 提供司机等级
     */
    @ApiModelProperty(value = "提供司机等级", required = true, example = "1")
    private Integer driverLevelId;

    /**
     * 提成，元/人
     */
    @ApiModelProperty(value = "提成，元/人", required = true, example = "10")
    private Integer commission;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true, example = "备注一下")
    private String remark;

    /**
     * 状态，0=有效，1=失效
     */
    @ApiModelProperty(value = "状态，0=有效，1=失效", required = true, example = "0")
    private Integer state;

}